package com.noriental.okcalls.wechat.api;

import com.noriental.okcalls.utils.HttpUtils;
import com.noriental.okcalls.wechat.api.base.bean.ApiResult;

import static com.noriental.okcalls.wechat.api.base.config.WxApiHost.wxHost;

/**
 * 获取自动回复规则
 *
 * @author L.cm
 * email: 596392912@qq.com
 * site:http://www.dreamlu.net
 * date: 2016年2月15日 下午10:08:50
 */
public class AutoReplyInfoApi {

    private static String getCurrentAutoreplyInfoUrl = wxHost + "/cgi-bin/get_current_autoreply_info?access_token=";

    public static ApiResult getCurrent() {
        String jsonResult = HttpUtils.get(getCurrentAutoreplyInfoUrl + AccessTokenApi.getAccessTokenStr());
        return new ApiResult(jsonResult);
    }

}
